/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.dao;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;

/**
* @description /
* @author laoxu
* @date 2025-06-26
**/
@Data
@Accessors(chain = true)
@TableName("iws_mes_sync")
public class MesSyncDao implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "物料的编号")
    private String materialCode;

    @ApiModelProperty(value = "物料的名称")
    private String materialName;

    @ApiModelProperty(value = "物料分类")
    private String materialType;

    @ApiModelProperty(value = "物料分类名称（原料、辅料、半成品）")
    private String materialTypeName;

    @ApiModelProperty(value = "物料的有效期（天数）")
    private Integer dormancyPeriod;

    @ApiModelProperty(value = "物料规格")
    private String materialSpecs;

    @ApiModelProperty(value = "物料单位")
    private String materialUnit;

    @ApiModelProperty(value = "supplierCustomer")
    private String supplierCustomer;

    @ApiModelProperty(value = "记录更新时间")
    private String updateTime;

    @ApiModelProperty(value = "超发限额")
    private Integer overissueLimit;

    @ApiModelProperty(value = "标准重量")
    private Integer standardWeight;

    @ApiModelProperty(value = "有效期")
    private Integer expiryPeriod;


    public void copy(MesSyncDao source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
